.class Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;
.super Ljava/lang/Object;
.source "VideoFullscreen.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->startCountdownToAllowSkip()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)V
    .locals 0
    .parameter

    .prologue
    .line 422
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    .prologue
    const/4 v7, 0x0

    .line 426
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    iget-object v4, v4, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mShowSkipButtonAfter:Ljava/lang/Integer;

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    add-int/lit16 v4, v4, -0x3e8

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    .line 427
    .local v3, nextValue:Ljava/lang/Integer;
    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v4

    if-lez v4, :cond_0

    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    iget-object v4, v4, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mShowSkipButtonAfter:Ljava/lang/Integer;

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    if-lez v4, :cond_0

    .line 428
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    iput-object v3, v4, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mShowSkipButtonAfter:Ljava/lang/Integer;

    .line 429
    const-string v4, "You can skip this video in {0} seconds"

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/Object;

    iget-object v6, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    iget-object v6, v6, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mShowSkipButtonAfter:Ljava/lang/Integer;

    invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I

    move-result v6

    div-int/lit16 v6, v6, 0x3e8

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v5, v7

    invoke-static {v4, v5}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    .line 431
    .local v2, message:Ljava/lang/String;
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mWaitMessageView:Landroid/widget/TextView;
    invoke-static {v4}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->access$500(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)Landroid/widget/TextView;

    move-result-object v4

    invoke-virtual {v4, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 432
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    iget-object v4, v4, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mHandler:Landroid/os/Handler;

    const-wide/16 v5, 0x3e8

    invoke-virtual {v4, p0, v5, v6}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 444
    .end local v2           #message:Ljava/lang/String;
    :goto_0
    return-void

    .line 434
    :cond_0
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    iput-object v5, v4, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mShowSkipButtonAfter:Ljava/lang/Integer;

    .line 435
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mWaitMessageView:Landroid/widget/TextView;
    invoke-static {v4}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->access$500(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)Landroid/widget/TextView;

    move-result-object v4

    const/16 v5, 0x8

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 436
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    iget-object v4, v4, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-virtual {v4}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    const v5, 0x10a0001

    invoke-static {v4, v5}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v1

    .line 438
    .local v1, animFadeOut:Landroid/view/animation/Animation;
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mWaitMessageView:Landroid/widget/TextView;
    invoke-static {v4}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->access$500(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)Landroid/widget/TextView;

    move-result-object v4

    invoke-virtual {v4, v1}, Landroid/widget/TextView;->startAnimation(Landroid/view/animation/Animation;)V

    .line 439
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mSkipButton:Landroid/widget/ImageView;
    invoke-static {v4}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->access$600(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)Landroid/widget/ImageView;

    move-result-object v4

    invoke-virtual {v4, v7}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 440
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    iget-object v4, v4, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-virtual {v4}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    const/high16 v5, 0x10a

    invoke-static {v4, v5}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    .line 442
    .local v0, animFadeIn:Landroid/view/animation/Animation;
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mSkipButton:Landroid/widget/ImageView;
    invoke-static {v4}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->access$600(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)Landroid/widget/ImageView;

    move-result-object v4

    invoke-virtual {v4, v0}, Landroid/widget/ImageView;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_0
.end method
